]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
build: Make bash-completion support optional
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 5 Mar 2020 13:56:13 +0000 (14:56 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 21 Mar 2020 19:44:43 +0000 (20:44 +0100)
Whether we install bash-completion support currently depends on whether
the corresponding pkg-config dependency is found.

Turning this into a feature option keeps that behavior by default, but
also allows to explicitly enable or disable the support.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1072

subprojects/extensions-tool/meson.build
subprojects/extensions-tool/meson_options.txt

index ffaf49bd3271cb6713d05e70473ec41c1d1998b2..4631eef5869e3e6cd523cc5b711aa1a9cfbc4993 100644 (file)
@@ -33,7 +33,7 @@ json_dep = dependency('json-glib-1.0')
 
 cc = meson.get_compiler('c')
 
-bash_completion = dependency('bash-completion', required: false)
+bash_completion = dependency('bash-completion', required: get_option('bash_completion'))
 
 subdir('src')
 
index 9963d8ff7ef2d50564bc8dc6fded5b295dc105b5..fb6e37060aa95ece9fb1e3e17440ccf648734097 100644 (file)
@@ -5,6 +5,12 @@ option('man',
   yield: true,
 )
 
+option('bash_completion',
+  type: 'feature',
+  value: 'auto',
+  description: 'Install bash completion support',
+)
+
 option('package_name',
   type: 'string',
   description: 'The gettext domain name when used as a subproject'